package de.gameduell.framework.facebook.app.popups {
	import de.gameduell.framework.debug.Debug;
	import de.gameduell.framework.facebook.app.Controller;

	import flash.events.Event;

	public class TempleGamePopup extends PyramidBasePopup {
//		private var pageManager:PageManager;

		public function TempleGamePopup() {
			super("templeGamePopup", "templeGamePopup", 0, false);
			//			var taskId:String = String(controller.lastGameResult.taskId);
//			pageManager = PageManager.getInstance();
			controller = Controller.getInstance();
			
			//			controller.
			registerButton("okButton", postToWall);
			registerButton("skipButton", hide);
			
			Debug.trace("TempleGamePopup::TempleGamePopup", Debug.ERROR);
		}

		private function postToWall(event:Event):void {
			Debug.trace("HighscorePopup::postToWall 1", Debug.DEBUG);
			controller.postScoreToWall();
			Debug.trace("HighscorePopup::postToWall 2", Debug.DEBUG);
			hide();
		}
	}
}